package com.liao.service.impl;

import com.liao.bean.User;
import com.liao.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liao.dao.UserDao;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User queryUserByPhoneAndCaptcha(String phone) throws Exception {
        return userDao.selectUserByPhoneAndCapcha(phone);
    }
}
